
/**
 * Dielectric
 * @version 1.0
 * @since 1.0
 * <p>
 * Created by Murphy at 2021/7/19 10:13
 **/

#pragma once
#include "Material.hpp"

namespace Stitches
{

class Dielectric : public Material
{
public:
    Dielectric(double ri) : ref_idx(ri) { }

    bool scatter(const Ray& r_in, const HitRecord& rec, Vec3f & attenuation, Ray& scattered) const override;

private:
    double ref_idx;
};

}
